package com.owner.biz.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.owner.biz.InformBiz;
import com.owner.dao.InformDao;
import com.owner.entity.Inform;

@Service("informBiz")
@Scope("prototype")
public class InformBizImpl implements InformBiz{

	@Autowired
	private InformDao informDao;

	public int addInform(Inform inform) {
		// TODO Auto-generated method stub
		return informDao.addInform(inform);
	}

	public List<Inform> getAllInforms(String name,int startIndex, int pageSize) {
		// TODO Auto-generated method stub
		return informDao.getAllInforms(name, startIndex, pageSize);
	}

	public List<Inform> InformCountPage(String name) {
		// TODO Auto-generated method stub
		return informDao.InformCountPage(name);
	}
}
